package societyGames.codeAlong.model
{
import societyGames.xmlFragment.XMLFragment;

public class Parameter extends XMLFragment
{
  override protected function getDefaultXML():XML
  {
    return _defaultXML;
  }

  public function get name():String
  {
    return _xml.@name;
  }

  [Bindable]
  public function set name(value:String):void
  {
    _xml.@name = value;
  }

  public function get index():String
  {
    return _xml.@index;
  }

  [Bindable]
  public function set index(value:String):void
  {
    _xml.@index = value;
  }

  public function get type():String
  {
    return _xml.@type;
  }

  [Bindable]
  public function set type(value:String):void
  {
    _xml.@type = value;
  }

  public function get defaultValue():String
  {
    return _xml.@default;
  }

  [Bindable]
  public function set defaultValue(value:String):void
  {
    _xml.@default = value;
  }

  public function get description():String
  {
    return _xml.@description;
  }

  [Bindable]
  public function set description(value:String):void
  {
    _xml.@description = value;
  }

  private const _defaultXML:XML =
          <parameter name="shouldArrest" index="1" type="Boolean" description="True to arrest Alex, false otherwise."/>
}
}
